package aaa

import groovyx.javafx.beans.FXBindable2

import java.beans.Introspector

/**
 * Created by Misty on 2015/4/29.
 */
class Test {
    @FXBindable2
    static class Person {
        String name
    }

    static def main(args) {
        Person.metaClass.methodMissing = {
            println(it)
        }
        Introspector.getBeanInfo(Person).methodDescriptors.each {
            println(it)
        }
        println("================================================")
        Introspector.getBeanInfo(Person).propertyDescriptors.each {
            println(it)
        }
        println("================================================")
        def p = new Person()
        println(p.nameProperty())
    }
}
